using System.Web.Routing;
using Isis.Handlers;

[assembly: WebActivator.PreApplicationStartMethod(typeof(Sample.Web.App_Start.IsisBootstrapper), "Start")]
namespace Sample.Web.App_Start
{
	public static class IsisBootstrapper
	{
		public static void Start()
		{
			var routes = RouteTable.Routes;
			var isisHandler = new IsisRoutingHandler();
			routes.Add(new Route("isis", isisHandler));
			routes.Add(new Route("isis/{controller}", isisHandler));
			routes.Add(new Route("isis/{controller}/{action}", isisHandler));
			routes.Add(new Route("isis/{controller}/{action}/{parameter}", isisHandler));		
		}
	}
}